package com.py.credit.clean.code;

import java.util.Arrays;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

public class LengthCheck
{
    
    /**
     * 长度大小校验
     * @param data
     * @param extend
     * @return
     */
    public boolean run(String data,String extend){
    	List<String> list = Arrays.asList(extend.split(","));
        if(data.length()>Integer.valueOf(list.get(0))&&data.length()<Integer.valueOf(list.get(1))){
            return true;
        }
        return false;
    }
   
}
